{include file="pageheader.htm"}
<!-- start add new category form -->
<div class="main-div">
	<form action="origin_manage.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
	<table width="100%" id="general-table">
		<tr>
		  <td class="label">原产地名称:</td>
		  <td>
		    <input type='text' autocomplete="off" name='origin_name' maxlength="20" value='{$info.origin_name|escape:html}' size='27' /> <font color="red">*</font>
		  </td>
		</tr>
		<tr>
		  <td class="label">上级原产地:</td>
		  <td>
		    <select name="parent_id" autocomplete="off">
		      <option value="0">顶级</option>
		      {foreach from=$origin_select item=os name=os}
		      <option value="{$os.origin_id}" {if $os.is_selected == 1}selected{/if}>{if $os.level == 1}&nbsp;&nbsp;{/if}{$os.origin_name}</option>
		      {/foreach}
		    </select>
		  </td>
		</tr>
	</table>
	<div class="button-div">
	  <input type="submit" value="{$lang.button_submit}" />
	</div>
    <input type="hidden" name="act" value="act_add" />
    <input type="hidden" name="origin_id" value="{$info.origin_id}" />
  </form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">

<!--
document.forms['theForm'].elements['origin_name'].focus();
/**
 * 检查表单输入的数据
 */
function validate()
{
  validator = new Validator("theForm");
  validator.required("origin_name", '原产地名不能为空');
  return validator.passed();
}
onload = function()
{
  // 开始检查订单
  startCheckOrder();
}

//-->



</script>
{/literal}
{include file="pagefooter.htm"}